<template>
  <div class="publicTop">
    <div>
      <div class="zn">{{ textArr[index].znText }}</div>
      <div class="zn en">{{ textArr[index].enText }}</div>
    </div>
    <div class="tight">
      <!-- <div class="img"><img src="./../../assets/datav/xie.png" alt="" /></div> -->
      <div class="textNum">0{{ index + 1 }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PublicTop",
  props: {
    index: Number,
  },
  data() {
    return {
      textArr: [
        {
          znText: "工作日使用率",
          enText: "Quarterly sales progress",
        },
        {
          znText: "车型分布",
          enText: "Vehicle distribution",
        },
        {
          znText: "当月车型使用率",
          enText: "Vehicle utilization rate",
        },
        {
          znText: "部门用车申请排名",
          enText: "Department car application ranking",
        },
        {
          znText: "台数里程统计",
          enText: "Odd mileage statistics",
        },
        {
          znText: "出行事由分布",
          enText: "Reasons for travel distribution",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.publicTop {
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  height: 0.5rem;
  .zn {
    height: 17px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgb(255, 255, 255);
    font-weight: lighter;
    font-family: "Microsoft Yahei", Arial, "sans-serif";
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .en {
    font-size: 10px;
    color: rgb(46, 219, 255);
  }
  .tight {
    display: flex;
    .img {
      width: 20px;
      height: 0.5rem;
      margin-right: 10px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .textNum {
      width: 60px;
      height: 36px;
      pointer-events: auto;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      color: rgb(46, 219, 255);
      font-weight: normal;
      font-family: "sans-serif", Arial, "sans-serif";
      font-size: 46px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
  }
}
</style>
